# -*- coding:utf-8 -*-

from src.core.global_config import GlobalConfig
from src.package_helper.pkg_latest_release import PkgLatestReleaseHelper
from src.package_helper.pkg_release import PkgRelease
from src.package_helper.pkg_logos import PkgLogos
from src.package_helper.pkg_indexhtml import PkgIndexHtml


def get_all_pkg():
    _pkg_list = []
    latest_release = PkgLatestReleaseHelper(GlobalConfig.VENDOR_SRC,
                                            GlobalConfig.PRODUCT_NAME,
                                            GlobalConfig.VERSION_ID,
                                            GlobalConfig.VERSION_INFO)
    release = PkgRelease(GlobalConfig.VENDOR_SRC,
                         GlobalConfig.VERSION_ID,
                         GlobalConfig.VERSION_INFO)
    logos = PkgLogos(GlobalConfig.VENDOR_SRC,
                     GlobalConfig.LOGOS)
    indexhtml = PkgIndexHtml(GlobalConfig.VENDOR_SRC)
    _pkg_list.append(latest_release)
    _pkg_list.append(release)
    _pkg_list.append(logos)
    _pkg_list.append(indexhtml)
    return _pkg_list
